package cn.com.pkas.comm
{
	import mx.formatters.DateFormatter;
	
	public class Log
	{
		public function Log()
		{
		}
	
		private static const df:DateFormatter = new DateFormatter();	
		
		public static function debug(value:*,info:String=""):String{
			df.formatString = "YYYY-MM-DD JJ:NN:SS";
			if(info == ""){
				trace(df.format(new Date())+ "     【"+value+"】");
				return df.format(new Date())+ "     【"+value+"】";
			}else{
				trace(df.format(new Date())+ "     【"+info+"   :  "+value+"】");
				return df.format(new Date())+ "     【"+info+"   :  "+value+"】";
			}
			
		}

	}
}